/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */
#include "Creator.h"

#include "Hardware.h"

namespace liba {
namespace noise {
namespace hard {
namespace samsung {

static Hardware * sound_hardware = 0;

Creator::Creator()
{
	if( sound_hardware )
		THROW(Gluck(__FUNCTION__, "Hardware already exists"));

	sound_hardware = new Hardware();
}

Creator::~Creator()
{
	delete sound_hardware; sound_hardware = 0;
}

void Creator::life_cycle(double delta_time)
{
	if( sound_hardware )
		sound_hardware->life_cycle( delta_time );
}

} // namespace samsung
} // namespace hard
} // namespace noise
} // namespace liba
